<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <style>
        .div1{

            text-align: center;
            border: blue solid 1em;
            width: 400px;
            height: 500px;
        }
    </style>

    <script>
        function f() {
            document.getElementById('have').click(function () {
                window.location.href = "主网页.html";
            });
        }
    </script>

</head>
<body>

<div class="div1">
    <h1>欢迎加入我们</h1>
    <form action="">

         账号：<input type="text">
    <br/>
    密码：<input type="password">
    <br/>
    二次密码：<input type="password">
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="确认">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置">
        <input type="button" value="已有账号" id="have" onclick="window.location='主网页.html'">
    </form>


</div>

</body>
</html>